package cn.com.nes.mybatis.integrateServ.mapper;

import cn.com.nes.mybatis.ctce.entity.WxUserSms;
import cn.com.nes.mybatis.integrateServ.entity.AppUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author yishuai
 */
public interface AppUserMapper extends BaseMapper<AppUser> {

    //插入验证码
    void insertAppSmsCode(@Param("phone") String phone,@Param("verCode") String verCode,@Param("smsType") String smsType);


    WxUserSms appUsercheckVerCodeIncreaseTime(@Param("phone") String phone, @Param("verCode") String verCode);
    //验证手机号
    AppUser checkUser(@Param("phone")String phone,@Param("userName")String userName);

   void insertWxUsers(@Param("appUser") AppUser appUser);

    void deleteManufacturerUser(@Param("phone")String phone);
    void addManufacturerUser(@Param("appUser") AppUser appUser);
    AppUser checkUserPassWord(@Param("userName")String userName,@Param("passWord")String passWord);
    AppUser queryUserPassWord(@Param("userId")String userId,@Param("oldpwd")String oldpwd);

   void updateUserPassWord(@Param("userId")String userId,@Param("newpwd")String newpwd);

    AppUser queryUser(@Param("appUser") AppUser appUser);
}




